package com.bdqn.shequ.modules.sys.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bdqn.shequ.common.utils.PageUtils;
import com.bdqn.shequ.common.utils.Query;

import com.bdqn.shequ.modules.sys.dao.TcMeetingRoomDao;
import com.bdqn.shequ.modules.sys.entity.TcMeetingRoomEntity;
import com.bdqn.shequ.modules.sys.service.TcMeetingRoomService;


@Service("tcMeetingRoomService")
public class TcMeetingRoomServiceImpl extends ServiceImpl<TcMeetingRoomDao, TcMeetingRoomEntity> implements TcMeetingRoomService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TcMeetingRoomEntity> page = this.page(
                new Query<TcMeetingRoomEntity>().getPage(params),
                new QueryWrapper<TcMeetingRoomEntity>().orderByDesc("ID")
        );

        return new PageUtils(page);
    }

}
